<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head lang="es" xml:lang="es" xmlns="http://www.w3.org/1999/xhtml">
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
    <title><?php $this->_get_view_title(); ?></title>
    <link href="stylesheets/perkins.css" media="all" rel="stylesheet" type="text/css"/>
    <link href="stylesheets/app.css" media="all" rel="stylesheet" type="text/css"/>
    <script language="javascript" src="javascripts/jquery.js" type="text/javascript"></script>
    <script language="javascript" src="javascripts/layout.js" type="text/javascript"></script>
  </head>
  <body>
    <div id="header">
      <div class="row">
        <div class="column grid-16">
          <h1 class="f-logo">croakd</h1>
        </div>
      </div>
    </div>
    <div id="content">
      <div id="content">
        <div class="row">
          <div class="column grid-16">
            <h4 class="f-h4">Setup</h4>
            <?php if (count($this->perms_errors) > 0): ?>
            <div class="error">
              <h5 class="tac">In order to install croakd you have to know this nerdy stuff</h5>
              <ul>
                <?php foreach ($this->perms_errors as $perm_error): ?>
                <li><?php echo $perm_error['error']; ?></li>
                <?php endforeach; ?>
              </ul>
              If you want to continue you have to <strong>fix this</strong> using "chmod 666" to a file called "application/config/database.php"
            </div>
            <?php else: ?>
            <h5 class="tac success">In order to install croakd you have to know this nerdy stuff</h5>
            <div class="row">
              <div class="column grid-8">
                <h3>Database</h3>
                <form method="post" action="/install">
                  <label class="inlined" for="host">Host</label>
                  <input class="input-text" id="host" type="text" name="db-host" />
                  <label class="inlined" for="dbname">DB Name</label>
                  <input class="input-text" id="dbname" type="text" name="db-name" />
                  <label class="inlined" for="dbuser">DB Username</label>
                  <input class="input-text" id="dbuser" type="text" name="db-user" />
                  <label class="inlined" for="pass">Password</label>
                  <input class="input-text" id="pass" type="password" name="db-pass" />
              </div>
              <div class="column grid-8">
                <h3>Admin</h3>
                  <label class="inlined" for="ckduser">croakd Username</label>
                  <input class="input-text" id="ckduser" type="text" name="ckd-user" />
                  <label class="inlined" for="ckdpass">croakd Password</label>
                  <input class="input-text" id="ckdpass" type="password" name="ckd-pass" />
                  <label class="inlined" for="ckdemail">croakd E-mail</label>
                  <input class="input-text" id="ckdemail" type="text" name="ckd-email" />
                  <br />
                  <input type="submit" value="Install it!" />
                </form>
              </div>
            </div>
            <?php endif; ?>
          </div>
        </div>
      </div>
    </div>
    <div id="footer">
      <div class="row">
        <div class="column grid-16">
          <p class="tac">
            Copyright &copy; 2010 - Alvaro Veliz - Carlos El&iacute;as
          </p>
        </div>
      </div>
    </div>
  </body>
</html>
